/**
 * Copyright (C) 2016 Juno Inc., All Rights Reserved.
 */
package com.jyl.designPattern.structure.proxy;

import java.net.MalformedURLException;
import java.net.URL;

/**
 *
 * @author Long, E-mail:jyl0401@163.com
 * @date 2019年4月20日 下午5:43:27
 */
public class ImageViewTest {
	
	public static void main(String[] args) throws MalformedURLException {
		String url = "https://ss0.baidu.com/-Po3dSag_xI4khGko9WTAnF6hhy/image/h%3D300/sign=e95179517d8da977512f802b8050f872/91529822720e0cf3740bf4990446f21fbf09aad0.jpg";
		URL imageURL = new URL(url);
		HighResolutionImage highResolutionImage = new HighResolutionImage(imageURL);
		ProxyImage ProxyImage = new ProxyImage(highResolutionImage);
		ProxyImage.showImage();
		
	}

}
